<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
include 'conn.php';
if (isset($_GET['id'])) {
	$delete = mysqli_query($conn, "delete from shop where id=$_GET[id]");
	if ($delete) {
		echo "<script>alert('删除成功!');window.location.href='index.php'</script>";
	} else {
		echo "<script>alert('删除失败!');window.location.href='index.php'</script>";
	}
}
?>
</body>
</html>